TouchPoint

interface TouchPoint

A touch point on the screen.

A touch point is defined by a pair of numbers that specify the coordinates and other properties related to a user touch on the screen.

Since

8.0.0

Types

Link copied to clipboard
class Builder
A builder of TouchPoint.

Functions

Link copied to clipboard
open fun force(): Double
Returns the pressure applied to this TouchPoint.
Link copied to clipboard
open fun id(): Int
Returns the identifier of this TouchPoint.
Link copied to clipboard
open fun newBuilder(id: Int, screenPosition: Point, state: State): TouchPoint.Builder
Creates a new TouchPoint builder with the given required parameters.
Link copied to clipboard
Returns the position relative to the bounds of the screen.
Link copied to clipboard
Returns the position relative to the bounds of the widget.
Link copied to clipboard
open fun radiusX(): Double
Returns the major X axis length of the touch ellipse.
Link copied to clipboard
open fun radiusY(): Double
Returns the major Y axis length of the touch ellipse.
Link copied to clipboard
open fun rotationAngle(): Double
Returns the orientation of the touch ellipse.